
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Text · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="Text.html" />
    
    
    <link rel="prev" href="Color.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="Getting-Started.html">
            
                <a href="Getting-Started.html">
            
                    
                    开始 & 安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="Syntax-Specification.html">
            
                <a href="Syntax-Specification.html">
            
                    
                    数据模板
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="Syntax-Specification.html">
            
                <a href="Syntax-Specification.html#数据模板定义规范-dtd">
            
                    
                    数据模板定义规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="Syntax-Specification.html">
            
                <a href="Syntax-Specification.html#1-属性值是字符串-string">
            
                    
                    String
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="Syntax-Specification.html">
            
                <a href="Syntax-Specification.html#2-属性值是数字-number">
            
                    
                    Number
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="Syntax-Specification.html">
            
                <a href="Syntax-Specification.html#3-属性值是布尔型-boolean">
            
                    
                    Boolean
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="Syntax-Specification.html">
            
                <a href="Syntax-Specification.html#4-属性值是对象-object">
            
                    
                    Object
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="Syntax-Specification.html">
            
                <a href="Syntax-Specification.html#5-属性值是数组-array">
            
                    
                    Array
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="Syntax-Specification.html">
            
                <a href="Syntax-Specification.html#6-属性值是函数-function">
            
                    
                    Function
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="Syntax-Specification.html">
            
                <a href="Syntax-Specification.html#7-属性值是正则表达式-regexp">
            
                    
                    RegExp
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="Syntax-Specification.html">
            
                <a href="Syntax-Specification.html#数据占位符定义规范-dtd">
            
                    
                    数据占位符定义规范
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="Mock.mock.html">
            
                <a href="Mock.mock.html">
            
                    
                    Mock.mock()
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="Mock.setup.html">
            
                <a href="Mock.setup.html">
            
                    
                    Mock.setup()
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="Mock.Random.html">
            
                <a href="Mock.Random.html">
            
                    
                    Mock.Random()
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="Basic.html">
            
                <a href="Basic.html">
            
                    
                    Basic
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1.1" data-path="Basic.html">
            
                <a href="Basic.html#randomboolean-min-max-current-">
            
                    
                    boolean
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.1.2" data-path="Basic.html">
            
                <a href="Basic.html#randomnatural-min-max-">
            
                    
                    natural
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.1.3" data-path="Basic.html">
            
                <a href="Basic.html#randominteger-min-max-">
            
                    
                    integer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.1.4" data-path="Basic.html">
            
                <a href="Basic.html#randomfloat-min-max-dmin-dmax-">
            
                    
                    float
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.1.5" data-path="Basic.html">
            
                <a href="Basic.html#randomcharacter-pool-">
            
                    
                    character
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.1.6" data-path="Basic.html">
            
                <a href="Basic.html#randomstring-pool-min-max-">
            
                    
                    string
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.1.7" data-path="Basic.html">
            
                <a href="Basic.html#randomrange-start-stop-step-">
            
                    
                    range
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="Date.html">
            
                <a href="Date.html">
            
                    
                    Date
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.2.1" data-path="Date.html">
            
                <a href="Date.html#randomdate-format-">
            
                    
                    date
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.2" data-path="Date.html">
            
                <a href="Date.html#randomtime-format-">
            
                    
                    timeDate
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.3" data-path="Date.html">
            
                <a href="Date.html#randomdatetime-format-">
            
                    
                    datetime
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.4" data-path="Date.html">
            
                <a href="Date.html#randomnow-unit-format-">
            
                    
                    now
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="Image.html">
            
                <a href="Image.html">
            
                    
                    Image
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.3.1" data-path="Image.html">
            
                <a href="Image.html">
            
                    
                    img
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3.2" data-path="Image.html">
            
                <a href="Image.html">
            
                    
                    dataImage
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="Color.html">
            
                <a href="Color.html">
            
                    
                    Color
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.4.1" data-path="Color.html">
            
                <a href="Color.html#randomcolor">
            
                    
                    color
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4.2" data-path="Color.html">
            
                <a href="Color.html#randomhex">
            
                    
                    hex
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4.3" data-path="Color.html">
            
                <a href="Color.html#randomrgb">
            
                    
                    rgb
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4.4" data-path="Color.html">
            
                <a href="Color.html#randomhsl">
            
                    
                    hsl
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="1.6.5" data-path="Text.html">
            
                <a href="Text.html">
            
                    
                    Text
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.5.1" data-path="Text.html">
            
                <a href="Text.html#randomparagraph-min-max-">
            
                    
                    paragraph
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5.2" data-path="Text.html">
            
                <a href="Text.html#randomsentence-min-max-">
            
                    
                    sentence
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5.3" data-path="Text.html">
            
                <a href="Text.html#randomword-min-max-">
            
                    
                    word
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5.4" data-path="Text.html">
            
                <a href="Text.html#randomtitle-min-max-">
            
                    
                    title
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5.5" data-path="Text.html">
            
                <a href="Text.html#randomcparagraph-min-max-">
            
                    
                    cparagraph
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5.6" data-path="Text.html">
            
                <a href="Text.html#randomcsentence-min-max-">
            
                    
                    csentence
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5.7" data-path="Text.html">
            
                <a href="Text.html#randomcword-pool-min-max-">
            
                    
                    cword
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5.8" data-path="Text.html">
            
                <a href="Text.html#randomctitle-min-max-">
            
                    
                    ctitlec
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="Name.html">
            
                <a href="Name.html">
            
                    
                    Name
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="Web.html">
            
                <a href="Web.html">
            
                    
                    Web
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="Address.html">
            
                <a href="Address.html">
            
                    
                    Address
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="Helper.html">
            
                <a href="Helper.html">
            
                    
                    Helper
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="Miscellaneous.html">
            
                <a href="Miscellaneous.html">
            
                    
                    Miscellaneous
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="Mock.valid.html">
            
                <a href="Mock.valid.html">
            
                    
                    Mock.valid()
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="Mock.toJSONSchema.html">
            
                <a href="Mock.toJSONSchema.html">
            
                    
                    Mock.toJSONSchema()
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="Thanks-&-Contributors.html">
            
                <a href="Thanks-&-Contributors.html">
            
                    
                    感谢 & 贡献者
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >Text</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <!-- ### Text -->
<h2 id="randomparagraph-min-max-">Random.paragraph( min?, max? )</h2>
<ul>
<li>Random.paragraph()</li>
<li>Random.paragraph( len )</li>
<li>Random.paragraph( min, max )</li>
</ul>
<p>&#x968F;&#x673A;&#x751F;&#x6210;&#x4E00;&#x6BB5;&#x6587;&#x672C;&#x3002;</p>
<!-- **参数的含义和默认值**如下所示： -->
<h3 id="len">len</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6307;&#x793A;&#x6587;&#x672C;&#x4E2D;&#x53E5;&#x5B50;&#x7684;&#x4E2A;&#x6570;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 3 &#x5230; 7 &#x4E4B;&#x95F4;&#x7684;&#x968F;&#x673A;&#x6570;&#x3002;</p>
<h3 id="min">min</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6307;&#x793A;&#x6587;&#x672C;&#x4E2D;&#x53E5;&#x5B50;&#x7684;&#x6700;&#x5C0F;&#x4E2A;&#x6570;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 3&#x3002;</p>
<h3 id="max">max</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6307;&#x793A;&#x6587;&#x672C;&#x4E2D;&#x53E5;&#x5B50;&#x7684;&#x6700;&#x5927;&#x4E2A;&#x6570;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 7&#x3002;</p>
<!-- **使用示例**如下所示： -->
<pre><code class="lang-js">Random.paragraph()
<span class="hljs-comment">// =&gt; &quot;Yohbjjz psxwibxd jijiccj kvemj eidnus disnrst rcconm bcjrof tpzhdo ncxc yjws jnmdmty. Dkmiwza ibudbufrnh ndmcpz tomdyh oqoonsn jhoy rueieihtt vsrjpudcm sotfqsfyv mjeat shnqmslfo oirnzu cru qmpt ggvgxwv jbu kjde. Kzegfq kigj dtzdd ngtytgm comwwoox fgtee ywdrnbam utu nyvlyiv tubouw lezpkmyq fkoa jlygdgf pgv gyerges wbykcxhwe bcpmt beqtkq. Mfxcqyh vhvpovktvl hrmsgfxnt jmnhyndk qohnlmgc sicmlnsq nwku dxtbmwrta omikpmajv qda qrn cwoyfaykxa xqnbv bwbnyov hbrskzt. Pdfqwzpb hypvtknt bovxx noramu xhzam kfb ympmebhqxw gbtaszonqo zmsdgcku mjkjc widrymjzj nytudruhfr uudsitbst cgmwewxpi bye. Eyseox wyef ikdnws weoyof dqecfwokkv svyjdyulk glusauosnu achmrakky kdcfp kujrqcq xojqbxrp mpfv vmw tahxtnw fhe lcitj.&quot;</span>

Random.paragraph(<span class="hljs-number">2</span>)
<span class="hljs-comment">// =&gt; &quot;Dlpec hnwvovvnq slfehkf zimy qpxqgy vwrbi mok wozddpol umkek nffjcmk gnqhhvm ztqkvjm kvukg dqubvqn xqbmoda. Vdkceijr fhhyemx hgkruvxuvr kuez wmkfv lusfksuj oewvvf cyw tfpo jswpseupm ypybap kwbofwg uuwn rvoxti ydpeeerf.&quot;</span>

Random.paragraph(<span class="hljs-number">1</span>, <span class="hljs-number">3</span>)
<span class="hljs-comment">// =&gt; &quot;Qdgfqm puhxle twi lbeqjqfi bcxeeecu pqeqr srsx tjlnew oqtqx zhxhkvq pnjns eblxhzzta hifj csvndh ylechtyu.&quot;</span>
</code></pre>
<h2 id="randomcparagraph-min-max-">Random.cparagraph( min?, max? )</h2>
<ul>
<li>Random.cparagraph()</li>
<li>Random.cparagraph( len )</li>
<li>Random.cparagraph( min, max )</li>
</ul>
<p>&#x968F;&#x673A;&#x751F;&#x6210;&#x4E00;&#x6BB5;&#x4E2D;&#x6587;&#x6587;&#x672C;&#x3002;</p>
<p>&#x53C2;&#x6570;&#x7684;&#x542B;&#x4E49;&#x548C;&#x9ED8;&#x8BA4;&#x503C;&#x540C; <a href="#Random.paragraph(%20min?,%20max?">Random.paragraph( min?, max? )</a>)</p>
<!-- **使用示例**如下所示： -->
<pre><code class="lang-js">Random.cparagraph()
<span class="hljs-comment">// =&gt; &quot;&#x7ED9;&#x65E5;&#x6570;&#x65F6;&#x5316;&#x5468;&#x4F5C;&#x5C11;&#x60C5;&#x8005;&#x7F8E;&#x5236;&#x8BBA;&#x3002;&#x5230;&#x5148;&#x4E89;&#x52B3;&#x4ECA;&#x5DF2;&#x7F8E;&#x53D8;&#x6C5F;&#x4EE5;&#x597D;&#x8F83;&#x6B63;&#x65B0;&#x6DF1;&#x3002;&#x65CF;&#x56FD;&#x822C;&#x5EFA;&#x96BE;&#x51FA;&#x5C31;&#x91D1;&#x611F;&#x57FA;&#x9178;&#x8F6C;&#x3002;&#x4EFB;&#x90E8;&#x56DB;&#x90A3;&#x54CD;&#x6210;&#x65CF;&#x5229;&#x6807;&#x94C1;&#x5BFC;&#x672F;&#x4E00;&#x6216;&#x5DF2;&#x4E8E;&#x3002;&#x7701;&#x5143;&#x5207;&#x4E16;&#x6743;&#x5F80;&#x7740;&#x8DEF;&#x79EF;&#x4F1A;&#x5176;&#x533A;&#x7D20;&#x767D;&#x601D;&#x65AD;&#x3002;&#x52A0;&#x628A;&#x4ED6;&#x4F4D;&#x95F4;&#x5B58;&#x5B9A;&#x56FD;&#x5DE5;&#x53D6;&#x9664;&#x8BB8;&#x70ED;&#x89C4;&#x5148;&#x6CD5;&#x65B9;&#x3002;&quot;</span>

Random.cparagraph(<span class="hljs-number">2</span>)
<span class="hljs-comment">// =&gt; &quot;&#x53BB;&#x8BDD;&#x8D77;&#x65F6;&#x4E3A;&#x65E0;&#x5B50;&#x8BAE;&#x6C14;&#x6839;&#x590D;&#x5373;&#x4F20;&#x6708;&#x5E7F;&#x3002;&#x9898;&#x6797;&#x91CC;&#x6CB9;&#x6B65;&#x4E0D;&#x7EA6;&#x8BA4;&#x5C71;&#x5F62;&#x4E24;&#x6807;&#x547D;&#x5BFC;&#x793E;&#x5E72;&#x3002;&quot;</span>

Random.cparagraph(<span class="hljs-number">1</span>, <span class="hljs-number">3</span>)
<span class="hljs-comment">// =&gt; &quot;&#x5019;&#x65E0;&#x90E8;&#x793E;&#x5FC3;&#x6027;&#x6709;&#x6784;&#x5458;&#x5176;&#x6DF1;&#x4F8B;&#x77FF;&#x53D6;&#x6C11;&#x4E3A;&#x3002;&#x987B;&#x88AB;&#x4EB2;&#x9700;&#x62A5;&#x6BCF;&#x5B8C;&#x8BA4;&#x652F;&#x8FD9;&#x660E;&#x590D;&#x51E0;&#x4E0B;&#x5728;&#x94C1;&#x9700;&#x8FDE;&#x3002;&#x7701;&#x5907;&#x53EF;&#x79BB;&#x5C55;&#x4E94;&#x6597;&#x5668;&#x5C31;&#x77F3;&#x6B63;&#x961F;&#x9664;&#x89E3;&#x52A8;&#x3002;&quot;</span>
</code></pre>
<h2 id="randomsentence-min-max-">Random.sentence( min?, max? )</h2>
<ul>
<li>Random.sentence()</li>
<li>Random.sentence( len )</li>
<li>Random.sentence( min, max )</li>
</ul>
<p>&#x968F;&#x673A;&#x751F;&#x6210;&#x4E00;&#x4E2A;&#x53E5;&#x5B50;&#xFF0C;&#x7B2C;&#x4E00;&#x4E2A;&#x5355;&#x8BCD;&#x7684;&#x9996;&#x5B57;&#x6BCD;&#x5927;&#x5199;&#x3002;</p>
<!-- **参数的含义和默认值**如下所示： -->
<h3 id="len">len</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6307;&#x793A;&#x53E5;&#x5B50;&#x4E2D;&#x5355;&#x8BCD;&#x7684;&#x4E2A;&#x6570;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 12 &#x5230; 18 &#x4E4B;&#x95F4;&#x7684;&#x968F;&#x673A;&#x6570;&#x3002;</p>
<h3 id="min">min</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6307;&#x793A;&#x53E5;&#x5B50;&#x4E2D;&#x5355;&#x8BCD;&#x7684;&#x6700;&#x5C0F;&#x4E2A;&#x6570;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 12&#x3002;</p>
<h3 id="max">max</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6307;&#x793A;&#x53E5;&#x5B50;&#x4E2D;&#x5355;&#x8BCD;&#x7684;&#x6700;&#x5927;&#x4E2A;&#x6570;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 18&#x3002;</p>
<!-- **使用示例**如下所示： -->
<pre><code class="lang-js">Random.sentence()
<span class="hljs-comment">// =&gt; &quot;Jovasojt qopupwh plciewh dryir zsqsvlkga yeam.&quot;</span>
Random.sentence(<span class="hljs-number">5</span>)
<span class="hljs-comment">// =&gt; &quot;Fwlymyyw htccsrgdk rgemfpyt cffydvvpc ycgvno.&quot;</span>
Random.sentence(<span class="hljs-number">3</span>, <span class="hljs-number">5</span>)
<span class="hljs-comment">// =&gt; &quot;Mgl qhrprwkhb etvwfbixm jbqmg.&quot;</span>
</code></pre>
<h2 id="randomcsentence-min-max-">Random.csentence( min?, max? )</h2>
<ul>
<li>Random.csentence()</li>
<li>Random.csentence( len )</li>
<li>Random.csentence( min, max )</li>
</ul>
<p>&#x968F;&#x673A;&#x751F;&#x6210;&#x4E00;&#x6BB5;&#x4E2D;&#x6587;&#x6587;&#x672C;&#x3002;</p>
<p>&#x53C2;&#x6570;&#x7684;&#x542B;&#x4E49;&#x548C;&#x9ED8;&#x8BA4;&#x503C;&#x540C; <a href="#Random.sentence(%20min?,%20max?">Random.sentence( min?, max? )</a>)</p>
<!-- **使用示例**如下所示： -->
<pre><code class="lang-js">Random.csentence()
<span class="hljs-comment">// =&gt; &quot;&#x7B2C;&#x4EFB;&#x4EBA;&#x4E5D;&#x540C;&#x6BB5;&#x5F62;&#x4F4D;&#x7B2C;&#x5F8B;&#x8BA4;&#x5F97;&#x3002;&quot;</span>

Random.csentence(<span class="hljs-number">2</span>)
<span class="hljs-comment">// =&gt; &quot;&#x7EF4;&#x603B;&#x3002;&quot;</span>

Random.csentence(<span class="hljs-number">1</span>, <span class="hljs-number">3</span>)
<span class="hljs-comment">// =&gt; &quot;&#x5382;&#x5B58;&#x3002;&quot;</span>
</code></pre>
<h2 id="randomword-min-max-">Random.word( min?, max? )</h2>
<ul>
<li>Random.word()</li>
<li>Random.word( len )</li>
<li>Random.word( min, max )</li>
</ul>
<p>&#x968F;&#x673A;&#x751F;&#x6210;&#x4E00;&#x4E2A;&#x5355;&#x8BCD;&#x3002;</p>
<!-- **参数的含义和默认值**如下所示： -->
<h3 id="len">len</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6307;&#x793A;&#x5355;&#x8BCD;&#x4E2D;&#x5B57;&#x7B26;&#x7684;&#x4E2A;&#x6570;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 3 &#x5230; 10 &#x4E4B;&#x95F4;&#x7684;&#x968F;&#x673A;&#x6570;&#x3002;</p>
<h3 id="min">min</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6307;&#x793A;&#x5355;&#x8BCD;&#x4E2D;&#x5B57;&#x7B26;&#x7684;&#x6700;&#x5C0F;&#x4E2A;&#x6570;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 3&#x3002;</p>
<h3 id="max">max</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6307;&#x793A;&#x5355;&#x8BCD;&#x4E2D;&#x5B57;&#x7B26;&#x7684;&#x6700;&#x5927;&#x4E2A;&#x6570;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 10&#x3002;</p>
<!-- **使用示例**如下所示： -->
<pre><code class="lang-js">Random.word()
<span class="hljs-comment">// =&gt; &quot;fxpocl&quot;</span>
Random.word(<span class="hljs-number">5</span>)
<span class="hljs-comment">// =&gt; &quot;xfqjb&quot;</span>
Random.word(<span class="hljs-number">3</span>, <span class="hljs-number">5</span>)
<span class="hljs-comment">// =&gt; &quot;kemh&quot;</span>
</code></pre>
<blockquote>
<p>&#x76EE;&#x524D;&#x5355;&#x8BCD;&#x4E2D;&#x7684;&#x5B57;&#x7B26;&#x662F;&#x968F;&#x673A;&#x7684;&#x5C0F;&#x5199;&#x5B57;&#x6BCD;&#xFF0C;&#x672A;&#x6765;&#x4F1A;&#x6839;&#x636E;&#x8BCD;&#x6CD5;&#x751F;&#x6210;&#x300E;&#x53EF;&#x8BFB;&#x300F;&#x7684;&#x5355;&#x8BCD;&#x3002;</p>
</blockquote>
<h2 id="randomcword-pool-min-max-">Random.cword( pool?, min?, max? )</h2>
<ul>
<li>Random.cword()</li>
<li>Random.cword( pool )</li>
<li>Random.cword( length )</li>
<li>Random.cword( pool, length )</li>
<li>Random.cword( min, max )</li>
<li>Random.cword( pool, min, max )</li>
</ul>
<p>&#x968F;&#x673A;&#x751F;&#x6210;&#x4E00;&#x4E2A;&#x6C49;&#x5B57;&#x3002;</p>
<!-- **参数的含义和默认值**如下所示： -->
<h3 id="pool">pool</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6C49;&#x5B57;&#x5B57;&#x7B26;&#x4E32;&#x3002;&#x8868;&#x793A;&#x6C49;&#x5B57;&#x5B57;&#x7B26;&#x6C60;&#xFF0C;&#x5C06;&#x4ECE;&#x4E2D;&#x9009;&#x62E9;&#x4E00;&#x4E2A;&#x6C49;&#x5B57;&#x5B57;&#x7B26;&#x8FD4;&#x56DE;&#x3002;</p>
<h3 id="min">min</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x968F;&#x673A;&#x6C49;&#x5B57;&#x5B57;&#x7B26;&#x4E32;&#x7684;&#x6700;&#x5C0F;&#x957F;&#x5EA6;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 1&#x3002;</p>
<h3 id="max">max</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x968F;&#x673A;&#x6C49;&#x5B57;&#x5B57;&#x7B26;&#x4E32;&#x7684;&#x6700;&#x5927;&#x957F;&#x5EA6;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 1&#x3002;</p>
<!-- **使用示例**如下所示： -->
<pre><code class="lang-js">Random.cword()
<span class="hljs-comment">// =&gt; &quot;&#x5E72;&quot;</span>
Random.cword(<span class="hljs-string">&apos;&#x96F6;&#x4E00;&#x4E8C;&#x4E09;&#x56DB;&#x4E94;&#x516D;&#x4E03;&#x516B;&#x4E5D;&#x5341;&apos;</span>)
<span class="hljs-comment">// =&gt; &quot;&#x516D;&quot;</span>
Random.cword(<span class="hljs-number">3</span>)
<span class="hljs-comment">// =&gt; &quot;&#x522B;&#x91D1;&#x63D0;&quot;</span>
Random.cword(<span class="hljs-string">&apos;&#x96F6;&#x4E00;&#x4E8C;&#x4E09;&#x56DB;&#x4E94;&#x516D;&#x4E03;&#x516B;&#x4E5D;&#x5341;&apos;</span>, <span class="hljs-number">3</span>)
<span class="hljs-comment">// =&gt; &quot;&quot;&#x4E03;&#x4E03;&#x4E03;&quot;&quot;</span>
Random.cword(<span class="hljs-number">5</span>, <span class="hljs-number">7</span>)
<span class="hljs-comment">// =&gt; &quot;&#x8BBE;&#x8FC7;&#x8BC1;&#x5168;&#x4E89;&#x542C;&quot;</span>
Random.cword(<span class="hljs-string">&apos;&#x96F6;&#x4E00;&#x4E8C;&#x4E09;&#x56DB;&#x4E94;&#x516D;&#x4E03;&#x516B;&#x4E5D;&#x5341;&apos;</span>, <span class="hljs-number">5</span>, <span class="hljs-number">7</span>)
<span class="hljs-comment">// =&gt; &quot;&#x4E5D;&#x4E03;&#x4E03;&#x96F6;&#x56DB;&quot;</span>
</code></pre>
<h2 id="randomtitle-min-max-">Random.title( min?, max? )</h2>
<ul>
<li>Random.title()</li>
<li>Random.title( len )</li>
<li>Random.title( min, max )</li>
</ul>
<p>&#x968F;&#x673A;&#x751F;&#x6210;&#x4E00;&#x53E5;&#x6807;&#x9898;&#xFF0C;&#x5176;&#x4E2D;&#x6BCF;&#x4E2A;&#x5355;&#x8BCD;&#x7684;&#x9996;&#x5B57;&#x6BCD;&#x5927;&#x5199;&#x3002;</p>
<!-- **参数的含义和默认值**如下所示： -->
<h3 id="len">len</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6307;&#x793A;&#x5355;&#x8BCD;&#x4E2D;&#x5B57;&#x7B26;&#x7684;&#x4E2A;&#x6570;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 3 &#x5230; 7 &#x4E4B;&#x95F4;&#x7684;&#x968F;&#x673A;&#x6570;&#x3002;</p>
<h3 id="min">min</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6307;&#x793A;&#x5355;&#x8BCD;&#x4E2D;&#x5B57;&#x7B26;&#x7684;&#x6700;&#x5C0F;&#x4E2A;&#x6570;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 3&#x3002;</p>
<h3 id="max">max</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6307;&#x793A;&#x5355;&#x8BCD;&#x4E2D;&#x5B57;&#x7B26;&#x7684;&#x6700;&#x5927;&#x4E2A;&#x6570;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 7&#x3002;</p>
<!-- **使用示例**如下所示： -->
<pre><code class="lang-js">Random.title()
<span class="hljs-comment">// =&gt; &quot;Rduqzr Muwlmmlg Siekwvo Ktn Nkl Orn&quot;</span>
Random.title(<span class="hljs-number">5</span>)
<span class="hljs-comment">// =&gt; &quot;Ahknzf Btpehy Xmpc Gonehbnsm Mecfec&quot;</span>
Random.title(<span class="hljs-number">3</span>, <span class="hljs-number">5</span>)
<span class="hljs-comment">// =&gt; &quot;Hvjexiondr Pyickubll Owlorjvzys Xfnfwbfk&quot;</span>
</code></pre>
<h2 id="randomctitle-min-max-">Random.ctitle( min?, max? )</h2>
<ul>
<li>Random.ctitle()</li>
<li>Random.ctitle( len )</li>
<li>Random.ctitle( min, max )</li>
</ul>
<p>&#x968F;&#x673A;&#x751F;&#x6210;&#x4E00;&#x53E5;&#x4E2D;&#x6587;&#x6807;&#x9898;&#x3002;</p>
<p>&#x53C2;&#x6570;&#x7684;&#x542B;&#x4E49;&#x548C;&#x9ED8;&#x8BA4;&#x503C;&#x540C; <a href="#Random.title(%20min?,%20max?">Random.title( min?, max? )</a>)</p>
<!-- **参数的含义和默认值**如下所示： -->
<h3 id="len">len</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6307;&#x793A;&#x5355;&#x8BCD;&#x4E2D;&#x5B57;&#x7B26;&#x7684;&#x4E2A;&#x6570;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 3 &#x5230; 7 &#x4E4B;&#x95F4;&#x7684;&#x968F;&#x673A;&#x6570;&#x3002;</p>
<h3 id="min">min</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6307;&#x793A;&#x5355;&#x8BCD;&#x4E2D;&#x5B57;&#x7B26;&#x7684;&#x6700;&#x5C0F;&#x4E2A;&#x6570;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 3&#x3002;</p>
<h3 id="max">max</h3>
<p>&#x53EF;&#x9009;&#x3002;</p>
<p>&#x6307;&#x793A;&#x5355;&#x8BCD;&#x4E2D;&#x5B57;&#x7B26;&#x7684;&#x6700;&#x5927;&#x4E2A;&#x6570;&#x3002;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 7&#x3002;</p>
<!-- **使用示例**如下所示： -->
<pre><code class="lang-js">Random.ctitle()
<span class="hljs-comment">// =&gt; &quot;&#x8BC1;&#x6784;&#x52A8;&#x5FC5;&#x4F5C;&quot;</span>
Random.ctitle(<span class="hljs-number">5</span>)
<span class="hljs-comment">// =&gt; &quot;&#x5E94;&#x9752;&#x6B21;&#x5F71;&#x80B2;&quot;</span>
Random.ctitle(<span class="hljs-number">3</span>, <span class="hljs-number">5</span>)
<span class="hljs-comment">// =&gt; &quot;&#x51FA;&#x6599;&#x9636;&#x76F8;&quot;</span>
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="Color.html#randomhsl" class="navigation navigation-prev " aria-label="Previous page: hsl">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="Text.html#randomparagraph-min-max-" class="navigation navigation-next " aria-label="Next page: paragraph">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Text","level":"1.6.5","depth":2,"next":{"title":"paragraph","level":"1.6.5.1","depth":3,"anchor":"#randomparagraph-min-max-","path":"Text.md","ref":"./Text.md#randomparagraph-min-max-","articles":[]},"previous":{"title":"hsl","level":"1.6.4.4","depth":3,"anchor":"#randomhsl","path":"Color.md","ref":"./Color.md#randomhsl","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"Text.md","mtime":"2019-01-02T03:55:46.303Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-01-02T04:01:33.354Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

